package atag.gui;
public class Constants {
  /**
   * The main simulation GUI is listening on this port.  Any transmissions from
   * the simulation to the GUI should be sent to this socket on the local
   * machine.
   */
  public static final int VIZ_PORT = 4000;

  /**
   * This socket is used by a Sensor.java instance to listen to sensor readings
   * controlled by sliders in the GUI.  When the sensor is initialized, it opens
   * a listener at the base port number plus its node ID.  When a message is
   * incoming on this socket, the current reading is changed; otherwise the
   * current/old reading is returned to whoever calls getReading().  Initial
   * value should be provided to the sensor class.
   */
  public static final int ACOUSTIC_SENSOR_READINGS_BASE_PORT = 6100;
  public static final int TEMPERATURE_SENSOR_READINGS_BASE_PORT = 6200;
  
  public static final String DEFAULT_TARGET_CODE_BASEPATH = "D:\\sdemo";
  public static final String DEFAULT_GUI_BASEPATH = DEFAULT_TARGET_CODE_BASEPATH;
  /**
   * This socket (base+id) is used by a node to listen for messages over the
   * simulated network (from other nodes).
   */
  public static final int NODE_PROCESS_BASE_PORT = 6300;

  public static final int MIN_READING = 0;
  public static final int MAX_READING = 50;

  public static final int TEMPERATURE_SENSOR = 0;
  public static final int DEFAULT_TEMPERATURE = 0;
  public static final int ACOUSTIC_SENSOR = 1;
  public static final int DEFAULT_ACOUSTIC = 0;
  
  public static final int NEW_NODE_INITIAL_ID = -10;
  //public static final int NEW_NODE_FIRST_ID = -10;
  
  public static final int NODE_IMAGE_HEIGHT = 25;
  public static final int NODE_IMAGE_WIDTH = 20;
  public static final int NODE_IMAGE_RADIOLINK_INTERVAL = 15;
  public static final int NODE_IMAGE_NEW_X = 30;
  public static final int NODE_IMAGE_NEW_Y = 30;
  final static double NODE_IMAGE_DISTANCE_SCALE = 1.0;
  
  public static final int NODE_TYPE_COMPLETED = 0;
  public static final int NODE_TYPE_PROTOTYPE = 1;
}
